import 'dart:io';

class AdsUnitId {
  static String get openAdUnitId {
    if(Platform.isAndroid) {
      return "ca-app-pub-5616973245527640/9346320324";
    }else if(Platform.isIOS) {
      // return "ca-app-pub-3940256099942544/5575463023"; //测试
      return "ca-app-pub-5616973245527640/4938778164";
    }else{
      throw UnsupportedError("Unsupported Platform");
    }
  }

  // static String get bannerAdUnitId {
  //   if(Platform.isAndroid) {
  //     return "ca-app-pub-5616973245527640/4640217731";
  //   }else if(Platform.isIOS) {
  //     return "ca-app-pub-3940256099942544/2435281174"; //测试
  //     // return "ca-app-pub-5616973245527640/4763932667";
  //   }else{
  //     throw UnsupportedError("Unsupported Platform");
  //   }
  // }

  
  static String get inlineAdaptive {
    if(Platform.isAndroid) {
      return "ca-app-pub-5616973245527640/4640217731";
    }else if(Platform.isIOS) {
      // return "ca-app-pub-3940256099942544/2435281174"; //测试
      return "ca-app-pub-5616973245527640/6141857238";
    }else{
      throw UnsupportedError("Unsupported Platform");
    }
  }

  static String get rewardAdUnitId {
    if(Platform.isIOS) {
      // return "ca-app-pub-3940256099942544/1712485313"; //测试
      return "ca-app-pub-5616973245527640/9372282541";
    }else{
      throw UnsupportedError("Unsupported Platform");
    }
  }

  static String get insertAdUnitId {
    if(Platform.isIOS) {
      // return "ca-app-pub-3940256099942544/4411468910"; //测试
      return "ca-app-pub-5616973245527640/6462169864";
    }else{
      throw UnsupportedError("Unsupported Platform");
    }
  }
}